public class Rectangle {
  public  int  wide1;
  public  int  long1;

  public int getArea(){
      return (wide1*long1);
  }

  public int getPerimeter(){
      return (wide1+long1)*2;
  }

  public Rectangle(int x,int y){
      this.long1=x;
      this.wide1=y;
  }

}

 class Test1{
     public static void main(String[] args) {
         Rectangle rectangle=new Rectangle(5,6);
         System.out.println("矩形面积为="+rectangle.getArea());
         System.out.println("矩形周长为"+rectangle.getPerimeter());
     }

}

